#include "Configuration.h"
#include "PageLib.h"
#include <iostream>
#include <chrono>
using namespace std;

//生成网页库和位置偏移库
int main()
{
    auto start = chrono::steady_clock::now();

    Configuration *config = Configuration::getInstance("../conf/myconf.conf");
    
    PageLib lib(config);
    lib.create();
    lib.store();
    
    auto end = chrono::steady_clock::now();
    chrono::duration<double> duration_seconds = end - start;
    double seconds = duration_seconds.count();
    cout << "程序执行总时长：" << seconds << " 秒" << endl;

    return 0;
}
